const path = require('path');
const nodeExternals = require('webpack-node-externals')
const merge = require('webpack-merge');
const base = require('./webpack.base.js');

module.exports = merge(base, {
    target: "node",
    entry:{
        app: './src/index.js',
    },
    output:{
        path: path.resolve(__dirname, 'build'),
        filename: '[name].bundle.js',
    },
    externals: [
        nodeExternals()
    ]
});
